package com.example.milktea.service.impl;

import com.example.milktea.dao.MaterialDao;
import com.example.milktea.entity.Material;
import com.example.milktea.service.MaterialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class MaterialServiceImpl implements MaterialService {
    @Autowired
    private MaterialDao materialDao;

    @Override
    public int insert(Material material) {
        return materialDao.insert(material);
    }

    @Override
    public int updateSupplementPhone(Material material) {
        return materialDao.updateSupplementPhone(material);
    }

    @Override
    public int updateSupplementPrice(Material material) {
        return materialDao.updateSupplementPrice(material);
    }

}
